<!-- 加载layout.html -->
{{extend('./layout.html')}}
			
{{#block('main')}}
	<div class="main-container">
		<div class="padding-md">
			<ul class="breadcrumb">
				<li><span class="primary-font"><i class="icon-home"></i></span><a href="index.html"> 主页</a></li>
				<li>学生管理</li>	 
				<li>学生列表</li>
				<li class="search">
					<ul class="nav-notification pull-right" style="display: inline-block;">	
						<div class="search-list">
							<div class="search-input-wrapper">
								<div class="search-input">
									<input type="text" name="search" value="{{search}}" class="form-control input-sm inline-block" placeholder="请输入姓名或手机号">
									<a href="javascript:;" class="input-icon text-normal" id="stuSearch"><i class="ion-ios7-search-strong"></i></a>
								</div>
							</div>
						</div>
					</ul>
				</li>
				<li class="pull-right"><a href="/admin/student/student_add" class="btn btn-primary">添加学生</a></li>
			</ul>

			<table class="table table-striped" id="dataTable">
				<thead>
					<tr>
						<th class="text-center">
							<div class="custom-checkbox">
								<input type="checkbox" id="chkAll" class="inbox-check">
								<label for="chkAll"></label>
							</div>
						</th>
						<th>序号</th>
						<th>所属班级</th>
						<th>学生头像</th>
						<th>学生姓名</th>
						<th>学生年龄</th>
						<th>学生性别</th>
						<th>手机号码</th>
						<th>报名时间</th>
						<th>学生状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{{#each(stuList)}}
					<tr>
						<td class="text-center">
							<div class="custom-checkbox">
								<input type="checkbox" id="chk{{xindex+1}}" class="inbox-check single">
								<label for="chk{{xindex+1}}"></label>
							</div>
						</td>
						<td>{{xindex+1}}</td>
						<td>{{this.class_name}}</td>
						<td>
							<img src="/uploads/{{this.stu_img}}" alt="" style="width: 80px;">
							<div class="gallery-overlay">
								<a href="/uploads/{{this.stu_img}}" class="gallery-action enlarged-photo"><i class="fa fa-search-plus fa-lg"></i></a>
							</div>
						</td>
						<td>{{this.stu_name}}</td>
						<td>{{this.stu_age}}</td>
						<td>{{this.stu_sex===1?'男':'女'}}</td>
						<td>{{this.stu_phone}}</td>
						<!-- 这里是通过js对时间戳进行转换，js写在layout.html文件下面 -->
						<td class="stu_time" data-time="{{this.stu_time}}"></td>
						<td><span class="label label-success stu_status" status_attr="{{this.stu_status}}" stu_id="{{this.stu_id}}">{{this.stu_statusZ}}</span></td>
						<td>
							<a href="/admin/student/student_edit/{{this.stu_id}}" class="btn btn-success">修改</a>
							<a href="javascript:;" class="btn btn-danger widget-remove-option danGe" id="{{this.stu_id}}" ctrname="student">删除</a>
						</td>
					</tr>
					{{/each}}
				</tbody>
			</table>
			<a href="javascript:;" class="btn btn-danger widget-remove-option piLiang" id="" ctrname="student" style="display: none;">批量删除</a>
			<!-- 包含分页文件 -->
			{{include('./page.html')}}
		
		</div><!-- ./padding-md -->
		
	</div><!-- /main-container -->
{{/block}}